<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>案例-播放效果</title>
  <style>
    img {
      width: 100%;
    }

    .box {

      width: 249px;
      height: 210px;
      margin: 50px auto;
    }

    .pic {
      position: relative;
      overflow: hidden;
    }

    .pic::after {
      position: absolute;
      left: 50%;
      top: 50%;
      translate: -50% -50%;
      /* margin-left: -29px;
      margin-top: -29px; */
      content: '';
      width: 58px;
      height: 58px;
      background-image: url(../../images/play.png);
      scale: 4;
      opacity: 0;
      transition: all 0.3s;
    }

    .box:hover .pic::after {
      opacity: 1;
      scale: 1;
    }
  </style>
</head>

<body>
  <div class="box">
    <div class="pic">
      <img src="../../images/party.jpeg" alt="">
    </div>
  </div>
</body>

</html>